package com.zt.springcloud.service.Impl;

import com.zt.springcloud.entity.Product;
import com.zt.springcloud.mapper.ProductMapper;
import com.zt.springcloud.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Set;

/**
 * @author RedReins
 * @version 1.0
 * @description: TODO
 * @date 2021/9/4 15:04
 */

@Service
public class ProductServiceImpl implements ProductService {
    @Autowired
    private ProductMapper productMapper;

    @Override
    public Set<Product> getAllFoodItem() {
        return productMapper.getAllFoodItem();
    }

    @Override
    public Product getItemInfo(Long productId) {
        return productMapper.getItemInfo(productId);
    }

    @Override
    public Boolean findItem(Long itemId) {
        return productMapper.findItem(itemId);
    }
}
